package com.example.day12;

/**
 * @author Lenovo
 */
public class Inter {
    interface inter {
        void method();
    }
    class Test{
        public static void main(String[] args) {
            new inter(){
                @Override
                public void method() {
                    System.out.println("匿名内部类");
                }
            }.method();
        }
    }
}
